 <div id="body_inner_right">
                <div id="wrapper_content">
                    <div id="content">
                          <div align="center" style="margin-top: 20px;">
                            <b style="font-size: 22px;">Cpanel Login</b>
                                <br><br> 
                            <table style="color: #767575; font-size: 12px;" cellpadding="2" border="0">
                                <tr>
                                    <td><label class="datalabel">Username</label></td>
                                    <td><input type="text" name="adminusername" id="adminusername" value="" class="textbox"></td>
                                </tr>
                                <tr>
                                    <td><label class="datalabel">Password</label></td>
                                    <td><input type="password" name="adminpassword" id="adminpassword" value="" class="textbox"></td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                    <td><div align="center"><input type="button" name="cmdLogin" id="cmdLogin" class="button_blue" value="Login"></div></td>
                                </tr>
                            </table>
                            </div>
                    </div>
                </div>
            </div>
            
               <script type="text/javascript">
                $("#cmdLogin").click
                (
                    function()
                    {
                        if($("#adminusername").val() == ""){
                            inlineMessage("adminusername", "Please enter the Admin Username.", 3);
                        } else if($("#adminpassword").val() == ""){
                            inlineMessage("adminpassword", "Please enter the Admin Password.", 3);
                        } else {
                            $.post
                            (
                                "<?php echo base_url(); ?>index.php/cpanel/authenticate",
                                {
                                    username: $("#adminusername").val(),
                                    password: $("#adminpassword").val()
                                },
                                function(data)
                                {
                                    if(data == "NOT EXIST"){
                                        inlineMessage("adminusername", "Username and Password does not exist.", 3);
                                    } else if(data == "LOGIN"){
                                        window.location = "<?php echo base_url(); ?>index.php/cpanel/dashboard";    
                                    }    
                                }
                            );
                        }
                    }
                );
                
                </script>